<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>无标题文本</title>
  <link th:href="@{/css/style.css}" rel="stylesheet" type="text/css" />
  <script type="text/javascript" th:src="@{/js/jquery.js}"></script>
</head>

<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li>仓库管理</li>
    <li>库存管理</li>
    <li>基本内容</li>
  </ul>
</div>
<div class="rightinfo">
  <form action="/erp/rep/kcware/allkc" method="post" id="kcform">
    <ul class="tools">
      <li>仓库名称:
        <input type="text" name="cName" th:value="${allkc.cName}" />
        <input type="hidden" name="pageno" value="" id="pageno"/>
      </li>
      <li>商品品牌:
        <input type="text" name="brandName" th:value="${allkc.brandName}"/>
      </li>
      <li>商品类型:
        <input type="text" name="typeName" th:value="${allkc.typeName}" />
      </li>
      <li>商品名称:
        <input type="text" name="productModel" th:value="${allkc.productModel}" />
      </li>
      <li class="subBut" onclick="goChaXun(1)"><img th:src="@{/images/t06.png}" />查询</li>
      <script type="text/javascript">
<<<<<<< .mine
        function goChaXun() {
            var cName=$("input[name=cName]").val();
            var brandName=$("input[name=brandName]").val();
            var typeName=$("input[name=typeName]").val();
            var productModel=$("input[name=productModel]").val();
            location.href="/erp1/rep/kcware/allkc?cName="+cName+'&brandName='+brandName+'&typeName='+typeName+'&productModel='+productModel;
        }
=======
>>>>>>> .r185
      </script>
    </ul>
    <table class="tablelist">
      <thead>
      <tr>
        <th>序号</th>
        <th>仓库名称</th>
        <th>商品品牌</th>
        <th>商品类型</th>
        <th>商品名称</th>
        <th>厂商名称</th>
        <th>商品数量</th>
        <th>单位</th>
      </tr>
      </thead>
      <tbody>
      <tr th:each="a,var : ${allkuinfo.list}">
        <td th:text="${var.count+(allkuinfo.pageNum-1)*allkuinfo.pageSize}">1</td>
        <td th:text="${a.cName}">南京21号仓库</td>
        <td th:text="${a.brandName}">联想</td>
        <td th:text="${a.typeName}">笔记本</td>
        <td th:text="${a.productModel}">X260i</td>
        <td th:text="${a.firmName}">北京联想科技股份有限公司</td>
        <td th:text="${a.repertory}">100</td>
        <td th:text="${a.productUnit}">台</td>
      </tr>
    </table>
    <div class="pagin">
      <div class="message">共<i class="blue" th:text="${allkuinfo.total}"></i>条记录，当前显示第&nbsp;<i class="blue" th:text="${allkuinfo.pageNum+'&nbsp;'}">2</i>页
      </div>
      <ul class="paginList">
        <li class="paginItem">
          <a href="javascript:void(0);" th:onclick="goChaXun([[${allkuinfo.isFirstPage?1:allkuinfo.pageNum-1}]])">
            <span th:class="${allkuinfo.isFirstPage?'pagepre':'pagenxt roate'}"></span>
          </a>
        </li>
        <li th:class="${page==allkuinfo.pageNum?'paginItem current':'paginItem'}"
            th:each="page : ${allkuinfo.navigatepageNums}">
          <a href="javascript:;" th:text="${page}" th:onclick="goChaXun([[${page}]])">1</a>
        </li>
        <li class="paginItem">
          <a href="javascript:void(0);"
             th:onclick="goChaXun([[${allkuinfo.isLastPage?allkuinfo.pages:allkuinfo.pageNum+1}]])">
            <span th:class="${allkuinfo.isLastPage?'pagepre roate':'pagenxt'}"></span>
          </a>
        </li>
      </ul>
    </div>
</form>
</div>
<script type="text/javascript">
  $('.tablelist tbody tr:odd').addClass('odd');

  function goChaXun(num) {
    $("#pageno").val(num);
    $("#kcform").submit();
  }
</script>
</body>
</html>
